import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 CrrSupplementRecordreport 分页列表
 */
export function getCrrSupplementRecordreportPagination(data: any) {
  return axios.get(`${context}/crrSupplementRecordreport/pagination`, {
    params: data,
  })
}

/**
 * 获取 CrrSupplementRecordreport 所有数据
 */
export function getCrrSupplementRecordreportAllList(data: any) {
  return axios.get(`${context}/crrSupplementRecordreport/allList`, {
    params: data,
  })
}

/**
 * 获取 CrrSupplementRecordreport 详情
 */
export function getCrrSupplementRecordreportDetailById(id: any) {
  return axios.get(`${context}/crrSupplementRecordreport/${id}`, {
    params: { id },
  })
}

/**
 * 新增 CrrSupplementRecordreport
 */
export function addCrrSupplementRecordreport(data: any) {
  return axios.post(`${context}/crrSupplementRecordreport`, data)
}

/**
 * 修改 CrrSupplementRecordreport
 */
export function updateCrrSupplementRecordreport(data: any) {
  return axios.put(`${context}/crrSupplementRecordreport`, data)
}

/**
 * 删除 CrrSupplementRecordreport
 */
export function batchRemoveCrrSupplementRecordreport(data: any) {
  return axios.post(`${context}/crrSupplementRecordreport/batchRemove`, data)
}
